<?php

namespace ticket\modules\frontend\models;

use Yii;

/**
 * This is the model class for table "tk_ticket_type".
 *
 * @property int $id
 * @property int $app_id
 * @property string $type_name
 * @property string $descript
 * @property string $state
 * @property string $create_time
 */
class TicketType extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'tk_ticket_type';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['app_id', 'type_name', 'descript'], 'required'],
            [['app_id'], 'integer'],
            [['state'], 'string'],
            [['create_time'], 'safe'],
            [['type_name'], 'string', 'max' => 32],
            [['descript'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'app_id' => 'App ID',
            'type_name' => 'Type Name',
            'descript' => 'Descript',
            'state' => 'State',
            'create_time' => 'Create Time',
        ];
    }
}
